<template>
  <div>
    <router-view></router-view>
    <van-tabbar
      v-model="active"
      replace
      route
      v-show="$route.meta.istabar"
      fixed
      placeholder
      active-color="#ff5000"
    >
      <van-tabbar-item icon="home-o" to="/">主页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/list">列表</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/me">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0
    }
  }
}
</script>
<style lang="css"></style>
